//vertex shader
#version 330
 
// uniform mat4 projTrans;
 
layout(location = 0) in vec3 a_position;
layout(location = 1) in vec2 a_uv;
 
out vec2 vTexCoord;
 
void main() {
    vTexCoord = a_uv;
    gl_Position =  vec4(a_position, 1);
}


//fragment shader
#version 330
uniform sampler2D u_sample0;
in vec2 vTexCoord;
 
out vec4 fragColor;
void main() {
    fragColor = texture(u_sample0, vTexCoord);
}


